<template>
  <h1>下拉选框组件</h1>
  <el-select v-model="city" style="width: 50%;" placeholder="请选择城市">
    <el-option label="云南" value="yun"></el-option>
    <el-option label="贵州" value="gui"></el-option>
    <el-option label="四川" value="chuan"></el-option>
    <el-option label="重庆" value="yu"></el-option>
  </el-select>
  <h4>你选择的城市是：{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('');
</script>

<style scoped>

</style>